/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.company.regis.services.impl;

import com.company.regis.bean.UserCriteria;
import com.company.regis.db.entity.RegUser;
import com.company.regis.db.entity.ViewUserDetail;
import com.company.regis.services.UserServices;
import com.company.user.dao.UserDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author totoland
 */
@Service("userServices")
public class UserServicesImpl implements UserServices{

    @Autowired
    UserDao userDao;
    
    @Override
    public List<ViewUserDetail> getAllUserDetail() {
        return userDao.getAllUserDetail();
    }

    @Override
    public RegUser findById(Integer id) {
        return userDao.findById(id);
    }

    @Override
    public List<ViewUserDetail> findByCriteria(UserCriteria userCriteria) {
        return userDao.findByCriteria(userCriteria);
    }

    @Override
    public Integer countByCriteria(UserCriteria userCriteria) {
        return userDao.countByCriteria(userCriteria);
    }
    
}
